/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package Zoomanagement;

/**
 * Animal Class - Represents animals in the zoo
 * @author ashongtical
 */
public class Animal {
    private String name;
    private String species;
    private int age;

    public Animal(String name, String species, int age) {
        this.name = name;
        this.species = species;
        this.age = age;
    }

    // Accessors
    public String getName() { return name; }
    public String getSpecies() { return species; }
    public int getAge() { return age; }

    // Display formatted animal details
    public void display() {
        System.out.printf("Name: %-8s | Species: %-20s | Age: %2d\n",
                name, species, age);
    }
}